#include "component/ColliderBox.h"
#include "GameObject.h"
#include "Bounds.h"



using namespace Boon;


GameObject::RegisterCreationCB<ColliderBox> cb;


void Boon::ColliderBox::OnCreate()
{
	m_Size = Vector3::ONE;
	Collider::OnCreate();
}

Boon::Bounds Boon::ColliderBox::GetBounds() const
{
	return Bounds( GetGameObject().GetTransform().GetPosition(), m_Size );
}

ColliderType Boon::ColliderBox::GetType() const
{
	return CT_BOX;
}
